import java.util.Arrays;
import java.math.MathContext; 
import java.util.Scanner;
class Rectangle{
	private int width ;
	private int length ;
	Rectangle(int width ,int length)
	{
		this.width = width ;
		this.length = length ;
	}
	public int getPerimeter()
	{
		return 2*(this.width + this.length) ;
	}
	public int getArea()
	{
		return this.length * this.width ;
	}
	public String toString() {
		return "Rectangle [width=" + width + ", length=" + length + "]";
	}
	
}
class Circle{
	private int radius ;
	Circle(int radius)
	{
		this.radius = radius ;
	}
	public int getPerimeter()
	{
		double d = 2 * Math.PI * this.radius ;
		int result = (int)d ;
		return result ;
	}
	public int getArea()
	{
		double d = Math.PI * this.radius * this.radius ;
		int result = (int)d ;
		return result ;
	}
	public String toString() {
		return "Circle [radius=" + radius + "]";
	}
	
}

public class Main {
	public static void main(String[] args) {
		Scanner sc  = new Scanner(System.in) ;
		Rectangle rec[] = new Rectangle[2] ;
		Circle cir[] = new Circle[2] ;
		for (int i = 0; i < rec.length; i++)
		{
			Rectangle r = new Rectangle(sc.nextInt(),sc.nextInt()) ;
			rec[i] = r ;
		}
		for (int i = 0; i < cir.length; i++)
		{
			Circle c = new Circle(sc.nextInt()) ;
			cir[i] = c ;
		}
		System.out.println(rec[0].getPerimeter()+rec[1].getPerimeter()+cir[0].getPerimeter()+cir[1].getPerimeter());
		System.out.println(rec[0].getArea()+rec[1].getArea()+cir[0].getArea()+cir[1].getArea());
		System.out.println(Arrays.deepToString(rec));
		System.out.println(Arrays.deepToString(cir));
	}
}